﻿using System.Windows;
using System.Windows.Documents;
using RG.Common;

namespace RG.Common.WPF.Workplaces
{
    /// <summary>
    /// Interaction logic for WorkplaceFrameSelector.xaml
    /// </summary>
    public partial class WorkplaceFrameSelector : IView<WorkplaceFrameSelectorVM>
    {
        public WorkplaceFrameSelector()
        {
            InitializeComponent();
        }

        public WorkplaceFrameSelectorVM Presenter
        {
            get { return (WorkplaceFrameSelectorVM)DataContext; }
            set
            {
                DataContext = value;
            }
        }

        private void Hyperlink_Click(object sender, RoutedEventArgs e)
        {
            var source = sender as Hyperlink;

            if (source != null)
                System.Diagnostics.Process.Start(source.NavigateUri.ToString());
        }
    }
}
